\hypertarget{struct_gumbo_source_position}{}\section{Gumbo\+Source\+Position Struct Reference}
\label{struct_gumbo_source_position}\index{Gumbo\+Source\+Position@{Gumbo\+Source\+Position}}


{\ttfamily \#include $<$gumbo.\+h$>$}

\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{struct_gumbo_source_position_a16cbbccf23f85b612f3e415ce31f187b}\label{struct_gumbo_source_position_a16cbbccf23f85b612f3e415ce31f187b}} 
unsigned int {\bfseries line}
\item 
\mbox{\Hypertarget{struct_gumbo_source_position_afb22c9bde5b0510161cca816e7489df2}\label{struct_gumbo_source_position_afb22c9bde5b0510161cca816e7489df2}} 
unsigned int {\bfseries column}
\item 
\mbox{\Hypertarget{struct_gumbo_source_position_ab9d9a2d8d9482ecd61fa1b9dd7fef417}\label{struct_gumbo_source_position_ab9d9a2d8d9482ecd61fa1b9dd7fef417}} 
unsigned int {\bfseries offset}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
A struct representing a character position within the original text buffer. Line and column numbers are 1-\/based and offsets are 0-\/based, which matches how most editors and command-\/line tools work. Also, columns measure positions in terms of characters while offsets measure by bytes; this is because the offset field is often used to pull out a particular region of text (which in most languages that bind to C implies pointer arithmetic on a buffer of bytes), while the column field is often used to reference a particular column on a printable display, which nowadays is usually U\+T\+F-\/8. 

The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/network/gumbo/parser/src/\mbox{\hyperlink{gumbo_8h}{gumbo.\+h}}\end{DoxyCompactItemize}
